package util.mongodb.mapper;

import shared.model.Entity;
import util.mongodb.document.MongoDBDocument;

/**
 * @author Gregory Boissinot
 */
public interface MongoDBDocumentMapper<E extends Entity<E>, D extends MongoDBDocument<D>> {

    public D toDocument(E value);

    public E fromDocument(D value);

}
